简体   繁体   中英

manipulate css border with javascript to custom

I'm wondering if there is a way to manipulate CSS border: edges to custom edge / border type with JavaScript or jQuery?

For example making a slightly; jagged, zigzag, or tear looking border edge for specified border without background: url('imageofedge.png'); ?

Curious if something like this is possible in effort to load less images across, for speed and performance.

Note: // I'm aware of CSS border property and know what capabilities are there, wondering if there is an ability to manipulate for custom option using jQuery / JS.

There is NO option with CSS so why use jquery? (yet)

Just do something like this:

border-image: url(imageofedge.png);

You can read more in DevDocs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM