Is it possible to replace ul
bullets with a button? I know you can change to images with CSS but if I wanted an actual element?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
This isn't possible as you asked, but you could, perhaps, emulate it:
And the following CSS:
JS Fiddle demo.
The success, or applicability, of this approach does, of course, depend entirely on your use-case which your question omits. With more detail, perhaps this answer can become more useful.
No, with CSS you can style the bullets or have them omitted, and you can have generated content instead, but generated content introduces just a pseudo-element with some content, not a real button element for example.
If you need to have an
ul
element in markup (I wonder why), then you could use some JavaScript that injectsbutton
elements (and CSS that hides the bullets). But assuming that I guess your intentions correctly, why not use just a table with buttons in one column, associated content in another, or maybe justdiv
elements with content starting with abutton
element?